// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 自己引入的 elementUi
import ElementUI from 'element-ui';//引入js
import 'element-ui/lib/theme-chalk/index.css';//引入样式
Vue.use(ElementUI)//让vue使用ElementUI
// 自己引入的 axios
import axios from 'axios'
//设置 全局公共的路径
axios.defaults.baseURL="https://www.fastmock.site/mock/d99b87325b1e18efb945a4345c422273/pethome"
//全局属性配置，在任意组件内可以使用this.$http获取axios对象
Vue.prototype.$http = axios


Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
